package cn.xiaolang.function.design_pattern.strategyAdapter;

/**
 * 维护对Strategy 对象的引用
 *
 * @author Dean
 * @date 2021-01-19
 */
public class SettlementContext {


    private OrderSettlement settlement;

    public SettlementContext(OrderSettlement settlement) {
        this.settlement = settlement;
    }

    Double settlement(Double originalPrice) {
        return settlement.settlement(originalPrice);
    }
}
